# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
# Contributor: Michael Zhou <zhoumichaely@gmail.com>
pkgname=py3-gevent
_pkgname=gevent
pkgver=1.5.0
pkgrel=0
pkgdesc="Python3 library for seamless coroutine-based concurrency"
options="!check" # Requires unpackaged 'objgraph'
url="http://gevent.org/"
arch="all"
license="MIT"
depends="py3-greenlet"
makedepends="py3-setuptools python3-dev libevent-dev file cython"
source="$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-gevent" # Backwards compatibility
provides="py-gevent=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="20460c2ff5822b4ccff27d616e94897f4edc19372d19aaf8cb00877449d1c899481bc0312839ee5b77a7166a61584e0f4f779dc81e437ebbd75e042db68d50ae  py3-gevent-1.5.0.tar.gz"
